'use strict';

const Service = require('egg').Service;

class PowerService extends Service {
  async menu(roleid) {
    return await this.app.mysql.query(`select menuname,menuapi from menulist where power like '%${roleid}%'`)
  }
}

module.exports = PowerService;
